<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%-- Uncomment below lines to add portlet taglibs to jsp--%>
<%@ page import="javax.portlet.*"%>
<%@page import="com.jefe.service.service.MessageTblLocalServiceUtil" %>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

<portlet:defineObjects />
<%PortletPreferences prefs = renderRequest.getPreferences();%> 
<%
int dispalyID = Integer.parseInt(prefs.getValue("id", "0"));
String heading = "";
String message = "";
String image = "";
if(dispalyID == 0){
    heading = "What is Jefe?";
    message = "Jefe is a unique Workflow Management System in a form of a web portal to unify enterprise information and applications in the domain of Software Development. It integrates most popular tools which are in use in the industry of software development, providing a rich stack of tools and even allow you to create new tools for the Jefe immensely increasing its value.";
    image = request.getContextPath()+"/images/logo1.png";
}else{
    heading = MessageTblLocalServiceUtil.getMessageTbl(dispalyID).getHeading();
    message = MessageTblLocalServiceUtil.getMessageTbl(dispalyID).getMessage();
    image = MessageTblLocalServiceUtil.getMessageTbl(dispalyID).getImage();
}
%>

<div align="justify">
    <div class="portlet-font" style="font-size: large">
        <% out.println(heading); %>
    </div>
    <p>
        <% out.println(message); %>
    </p>
    <div align="left">
        <% out.println("<img src=\""+image+"\" />"); %>
    </div>
</div>